/**SIGABRT*/
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<unistd.h>
#include<signal.h>

static void sig_handler(int sig){
	printf("received signal:%d\n",sig);
}
int main(void)
{
	struct sigaction sig={0};
	//sig.sa_handler=sig_handler;
	sig.sa_handler=SIG_IGN;
	sig.sa_flags=0;

	if(-1==sigaction(SIGABRT,&sig,NULL)){
		perror("sigaction error");
		return 1;
	}
	sleep(2);
	abort();
	for(;;)
		sleep(2);
	return 0;

}
